FROM java:8
VOLUME /tmp
ENV profiles="pro"
ADD admin.jar app.jar
ENTRYPOINT ["sh","-c","java -Djava.security.egd=file:/dev/./urandom -jar /app.jar --spring.profiles.active=$profiles "]